﻿@{
    ViewBag.Title = "GiveAuthorization";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
}

@section htmlhead{
      <link href="~/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/assets/css/plugin/validator.css" rel="stylesheet" />
    <link href="~/assets/css/ztree/zTreeStyle.css" rel="stylesheet" />
    }
@model LY.Entity.S_Role
 <div class="container">

     <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">权限管理</b></div>
            <div class="box_center">
                  <input id="Id" name="Id" value="@Model.ID" type="hidden" />
                  <input id="Authorization" name="Authorization" value="@Model.Authorization" type="hidden" />
               <table class="form_table pt15 pb15" style="width:100%;" border="0" >
                   <tr>
                  <td class="td_right">角色：</td>
                  <td class=""> 
                    <label id="lbRoleName">@Model.Name</label><input type="button" onclick="util.GetRoleName()" id="btnAdd" name="button" class="btn btn82 btn_add" value="+">
                  </td>
                 </tr>
                 <tr>
                  <td class="td_right">赋权限：</td>
                  <td class=""> 
                     <div id="treeDemo"  class="ztree" style="overflow:auto;">
                      </div> 
                  </td>
                 </tr>
                   <tr>
                  <td class="td_right"></td>
                  <td class=""></td>
                 </tr>
                   <tr>
                   <td class="td_right">&nbsp;</td>
                   <td class="">
                     <input type="button" id="btnSave" name="button" class="btn btn82 btn_save2" value="保存"> 
                    <input type="button" id="btnReturn" name="button" class="btn btn82 btn_res" value="返回"> 
                   </td>
                 </tr>
               </table>
            </div>
          </div>
        </div>
     </div>
   </div> 
@section jssection{
    <script type="text/javascript"> 
    var util = {}; 
    var options = { 
        MenuTreeUrl: "@Url.Action("MenuTree")",
        RoleTreeUrl: "@Url.Action("RoleTree")"
    }; 

   </script>
     <script src="~/assets/plugins/validator/validator.js"></script>
    <script src="~/assets/js/common.js"></script>
    <script src="~/assets/app/role/GiveAuthorization.js"></script>
    <script src="~/assets/app/role/MenuTree.js"></script>
    <script src="~/assets/DatePicker/WdatePicker.js"></script>
    <script src="~/assets/layer/layer.min.js"></script>
    <script src="~/assets/app/ztree/jquery.ztree.core-3.5.js"></script>
    <script src="~/assets/app/ztree/jquery.ztree.excheck-3.5.js"></script>
}